from pygal_maps_world.i18n import COUNTRIES

# for country_code in sorted(COUNTRIES.keys()):
    # print(country_code,COUNTRIES[country_code])

def get_country_code(country_name):
    """根据指定的国家，返回pygal使用的两个字母的国别吗"""
    for code,name in COUNTRIES.items():
        if name == country_name:
            return code

    return None